<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <title>ZUI - 开源HTML5跨屏框架</title>
  <link href="../css/zui.min.css" rel="stylesheet">
  <link href="../css/example.css" rel="stylesheet">

  <link rel="stylesheet/less" type="text/css" href="../src/less/zui.less" />
  <script type="text/javascript"> less = { env: "development", dumpLineNumbers:'mediaquery' }; </script>
  <script src="../assets/js/less.js"></script>
  <script src="../../assets/jquery.js"></script>
  <script src="../../dist/js/zui.min.js"></script>




  <script src="../assets/js/example.js"></script>
</head>
<body>
  <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">ZUI</a>
    </div>
    <div class="collapse navbar-collapse" id="navbar">
      <ul class="nav navbar-nav">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span id="navbarCurrent">examples</span> <b class="caret"></b></a>
          <ul class="dropdown-menu" role="menu">
            <li><a href="alerts.html">alerts</a></li>
            <li><a href="article.html">article</a></li>
            <li><a href="breadcrumb.html">breadcrumb</a></li>
            <li><a href="button-groups.html">button-groups</a></li>
            <li><a href="buttons.html">buttons</a></li>
            <li><a href="cards.html">cards</a></li>
            <li><a href="carousel.html">carousel</a></li>
            <li><a href="chosen.html">chosen</a></li>
            <li><a href="collapse.html">collapse</a></li>
            <li><a href="colorset.html">colorset</a></li>
            <li><a href="comment.html">comment</a></li>
            <li><a href="dropdowns.html">dropdowns</a></li>
            <li><a href="forms.html">forms</a></li>
            <li><a href="grid.html">grid</a></li>
            <li><a href="icons.html">icons</a></li>
            <li><a href="input-groups.html">input-groups</a></li>
            <li><a href="kindeditor.html">kindeditor</a></li>
            <li><a href="labels.html">labels</a></li>
            <li><a href="lightbox.html">Lightbox</a></li>
            <li><a href="list-group.html">list-group</a></li>
            <li><a href="list.html">list</a></li>
            <li><a href="modals.html">modals</a></li>
            <li><a href="navbars.html">navbars</a></li>
            <li><a href="navs.html">navs</a></li>
            <li><a href="pager.html">pager</a></li>
            <li><a href="panels.html">panels</a></li>
            <li><a href="popovers.html">popovers</a></li>
            <li><a href="progress.html">progress</a></li>
            <li><a href="tables.html">tables</a></li>
            <li><a href="tabs.html">tabs</a></li>
            <li><a href="textbox.html">textbox</a></li>
            <li><a href="tooltip.html">tooltip</a></li>
            <li><a href="type.html">type</a></li>
          </ul>
        </li>
        <li id="navbarNext"><a href="###">NEXT <i class="icon-angle-right icon-large"></i></a></li>
      </ul>
    </div>
  </nav>
  <article>
    <section id='form' class="page-section">
      <div class="page-header"><h1>表单</h1></div>
      <h3>类型</h3>
      <h4>基本类型</h4>
      <div class='panel'>
        <div class='panel-heading'>创建文章</div>
        <div class='panel-body'>
        <form class="form-horizontal" role="form" method='post'>
          <legend>legend</legend>
          <div class="form-group">
            <label class="col-md-2 control-label required">类目</label>
            <div class="col-md-4">
              <select name='categories[]' id='categories' multiple='multiple' class='select-3 form-control chosen'>
                <option value='2'>/蝉知动态</option>
                <option value='51'>/asd</option>
              </select>
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 control-label">作者</label>
            <div class="col-md-4">
               <input type='text' name='author' id='author' value='demo' class='form-control' />
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 control-label">创建日期</label>
            <div class="col-md-4">
              <div class="input-group">
                <input type='text' name='date' id='date' value='2013-2-13' class='form-control' />
                <span class="input-group-btn"> <button class="btn btn-default" type="button">田</button> </span>
              </div>
            </div>
          </div>


          <div class="form-group">
            <label class="col-md-2 control-label">来源</label>
            <div class='col-md-4'>
              <select name='original' id='original' class='form-control'>
                <option value='1' selected='selected'>原创</option>
                <option value='0'>转贴</option>
              </select>
            </div>
            <div id='copyBox'>
              <div class='col-md-2'><input type='text' name='copySite' id='copySite' value='' class='form-control' placeholder='来源网站' /></div>
              <div class='col-md-3'><input type='text' name='copyURL' id='copyURL' value='' class='form-control' placeholder='来源URL' /></div>
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 control-label">标题</label>
            <div class="col-md-10 has-error">
               <input type='text' name='title' id='title' value='' class='form-control' placeholder=''/>
               <div class="help-block alert alert-warning">标题不能为空</div>
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 control-label">英文别名</label>
            <div class="col-md-10">
              <div class="input-group">
                <span class="input-group-addon">http://demo.chanzhi.org/article/id@</span>
                <input type='text' name='alias' id='alias' value='' class='form-control' />
                <span class="input-group-addon">.html</span>
              </div>
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 control-label">关键字</label>
            <div class="col-md-10">
              <input type='text' name='keywords' id='keywords' value='' class='form-control' />
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 control-label">摘要</label>
            <div class="col-md-10">
              <textarea name='summary' id='summary' rows='2' class='form-control'></textarea>
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 control-label">内容</label>
            <div class="col-md-10">
              <textarea name='content' id='content' rows='10' class='form-control'></textarea>
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 control-label">保存为</label>
            <div class="col-md-10">
              <label class='radio-inline'> <input type="radio" name="optionsRadios" value="option1" checked> 草稿 </label>
              <label class='radio-inline'> <input type="radio" name="optionsRadios" value="option2"> 私人 </label>
              <label class='radio-inline'> <input type="radio" name="optionsRadios" value="option2"> 公开 </label>
            </div>
          </div>

          <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
               <input type='submit' id='submit' class='btn btn-primary' value='保存' data-loading='稍候...' /> <input type='hidden' name='type' id='type' value='article'  />
            </div>
          </div>
        </form>
        </div>
      </div>
      <h4>更为紧凑的表单</h4>
      <div class='panel'>
        <div class='panel-heading'>创建文章</div>
        <div class='panel-body'>
        <form class="form-horizontal form-condensed" role="form" method='post'>
          <legend>legend</legend>
          <div class="form-group">
            <label class="col-md-2 control-label required">类目</label>
            <div class="col-md-4">
              <select name='categories[]' id='categories' multiple='multiple' class='select-3 form-control chosen'>
                <option value='2'>/蝉知动态</option>
                <option value='51'>/asd</option>
              </select>
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 control-label">作者</label>
            <div class="col-md-4">
               <input type='text' name='author' id='author' value='demo' class='form-control' />
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 control-label">创建日期</label>
            <div class="col-md-4">
              <div class="input-group">
                <input type='text' name='date' id='date' value='2013-2-13' class='form-control' />
                <span class="input-group-btn"> <button class="btn btn-default" type="button">田</button> </span>
              </div>
            </div>
          </div>


          <div class="form-group">
            <label class="col-md-2 control-label">来源</label>
            <div class='col-md-4'>
              <select name='original' id='original' class='form-control'>
                <option value='1' selected='selected'>原创</option>
                <option value='0'>转贴</option>
              </select>
            </div>
            <div id='copyBox'>
              <div class='col-md-2'><input type='text' name='copySite' id='copySite' value='' class='form-control' placeholder='来源网站' /></div>
              <div class='col-md-3'><input type='text' name='copyURL' id='copyURL' value='' class='form-control' placeholder='来源URL' /></div>
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 control-label">标题</label>
            <div class="col-md-10 has-error">
               <input type='text' name='title' id='title' value='' class='form-control' placeholder=''/>
               <div class="help-block alert alert-warning">标题不能为空</div>
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 control-label">英文别名</label>
            <div class="col-md-10">
              <div class="input-group">
                <span class="input-group-addon">http://demo.chanzhi.org/article/id@</span>
                <input type='text' name='alias' id='alias' value='' class='form-control' />
                <span class="input-group-addon">.html</span>
              </div>
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 control-label">关键字</label>
            <div class="col-md-10">
              <input type='text' name='keywords' id='keywords' value='' class='form-control' />
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 control-label">摘要</label>
            <div class="col-md-10">
              <textarea name='summary' id='summary' rows='2' class='form-control'></textarea>
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 control-label">内容</label>
            <div class="col-md-10">
              <textarea name='content' id='content' rows='10' class='form-control'></textarea>
            </div>
          </div>

          <div class="form-group">
            <label class="col-md-2 control-label">保存为</label>
            <div class="col-md-10">
              <label class='radio-inline'> <input type="radio" name="optionsRadios" value="option1" checked> 草稿 </label>
              <label class='radio-inline'> <input type="radio" name="optionsRadios" value="option2"> 私人 </label>
              <label class='radio-inline'> <input type="radio" name="optionsRadios" value="option2"> 公开 </label>
            </div>
          </div>

          <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
               <input type='submit' id='submit' class='btn btn-primary' value='保存' data-loading='稍候...' /> <input type='hidden' name='type' id='type' value='article'  />
            </div>
          </div>
        </form>
        </div>
      </div>
      <h4>表格表单</h4>
      <table class="table-form">
        <tr>
          <th></th>
          <td></td>
        </tr>
      </table>
    </section>
  </article>
</body>
</html>

